<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
<div class="item-inner">
  <div class="item-content item-content1">
    <div class="inner">
      <div class="inner-title">Title 1</div>
      <div class="inner-msg">Message 1 that might be very long and needs to be truncated.</div>
    </div>
    <div class="inner">
      <div class="inner-title">Title 1</div>
      <div class="inner-msg">Message 1</div>
    </div>
  </div>
  <div class="item-content item-content2">
    <div class="inner">
      <div class="inner-title">Title 2</div>
      <div class="inner-msg">Message 2</div>
    </div>
    <div class="inner">
      <div class="inner-title">Title 2</div>
      <div class="inner-msg">Message 2</div>
    </div>
  </div>
  <div class="item-content item-content3">
    <div class="inner">
      <div class="inner-title">Title 3</div>
      <div class="inner-msg">Message 3</div>
    </div>
    <div class="inner">
      <div class="inner-title">Title 3</div>
      <div class="inner-msg">Message 3</div>
    </div>
  </div>
  <div class="item-content item-content4">
    <div class="inner">
      <div class="inner-title">Title 4</div>
      <div class="inner-msg">Message 4</div>
    </div>
    <div class="inner">
      <div class="inner-title">Title 4</div>
      <div class="inner-msg">Message 4</div>
    </div>
  </div>
  <div class="item-content item-content5">
    <div class="inner">
      <div class="inner-title">Title 5</div>
      <div class="inner-msg">Message 5</div>
    </div>
    <div class="inner">
      <div class="inner-title">Title 5</div>
      <div class="inner-msg">Message 5</div>
    </div>
  </div>
</div>


</body>

<style>
    .item-inner {
        display: flex;
        padding: 7px 0;
    }

    .item-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 7px 16px;
        border-right: 1px solid #d9d9d9;
    }

    .item-content1 {
        flex: 0 0 100px; /* 最小宽度 */
    }

    .item-content4 {
        flex: 0 0 200px; /* 最大宽度 */
    }

    .item-content2,
    .item-content3,
    .item-content5 {
        flex: 1; /* 平分宽度 */
    }

    .inner {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px; /* 分隔上下两个部分 */
    }

    .inner-title {
        text-align: right;
        flex: 0 0 auto; /* 保持标题宽度 */
    }

    .inner-msg {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1; /* 占用剩余空间 */
    }

</style>
</html>